package com.dyh.quickdemozwei

import org.springframework.stereotype.Component

@Component
class ScalaBean {



  /*
   Failed to instantiate [com.dyh.quickdemozwei.ScalaBean]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.dyh.quickdemozwei.ScalaBean.<init>()
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1316)
  */

  def t2(x: String)={
    if (x==null)
      ()
    else
      (x,x.length)
  }

  def xx(x:Long)={
    x*2
  }
}
